completes the environment